//用户相关的接口函数放在这里
import request from "@/utils/request"
// 枚举定义接口地址
enum API {
   LOGIN = "/users/login" , //登录
   LOGOUT = "/users/logout" , //退出登录
}

// 登录接口
export const reqLogin = (data:any) =>request.post<any,any>(API.LOGIN,data)
// 退出登录接口
export const reqLogout = () =>request.post<any,any>(API.LOGOUT)